(:
  A procedure to select the contents of the 2nd worksheet in excel
:)
declare boundary-space strip;
import module namespace
    jj = "http://kumquat.emse.fr/utilitaires"
    at "jjutils.xq" ;
    
declare namespace xcl = "urn:schemas-microsoft-com:office:spreadsheet";

<display>{
let $items := doc($arguments[1])/display/item
for $item in $items 
let $correct := if ($item/info[@name="lieu"] = $item/info[@name="piece"]) then "true" else "false"
return
<item>{
$item/info,
<info name="correct">{$correct}</info>
}</item>
}</display>
